<%@page language="java" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ include file="/view/common/taglib.jsp"%>
<%@ include file="/view/common/variable.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/view/common/head.jsp"%>
<meta name="keywords" content="学而阅读,小说网,原创小说网" />
<meta name="description"
	content="学而阅读,最热门的免费小说网站,提供武侠仙侠,奇幻玄幻,科幻灵异,都市言情,穿越女频,青春校园,历史军事,网游竞技,职业官场等网络热门的书籍下载跟阅读！" />
<title>学而阅读作家后台</title>
<link rel="stylesheet" href="<%=path%>/css/index.css" />
<link rel="stylesheet" href="<%=path%>/css/style.css" />
<script type="text/javascript" src="<%=path%>/js/base.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		var timer = null, divText = document.getElementById("clock");
		showTime();
		timer = setInterval(showTime, 1000);//绑定计时器。一秒钟调用一次函数，动态刷新时间
		function showTime() {
			var today = new Date(); //新建一个Date对象
			var date = today.getDate(); //查询当月日期
			var day = today.getDay(); //查询当前星期几
			var month = today.getMonth() + 1;//查询月份
			var year = today.getFullYear();//查询年份
			var hour = today.getHours();
			var min = today.getMinutes();
			var sec = today.getSeconds();
			var week = "";
			if (day == 0)
				week = '周日';
			if (day == 1)
				week = '周一';
			if (day == 2)
				week = '周二';
			if (day == 3)
				week = '周三';
			if (day == 4)
				week = '周四';
			if (day == 5)
				week = '周五';
			if (day == 6)
				week = '周六';
			divText.innerHTML = year + "年" + month + "月" + date + "日，" + week;
		}
	});
	function uploadBookCover(bookId) {
		$('#bookId').val(bookId);
		bomb();
		$(".upcover").fadeIn();
	}
</script>
</head>

<body ng-app="myApp" ng-controller='ShowController'>
	<%@ include file="/view/common/header.jsp"%>
	<div class="content clearfix">
		<%@ include file="/view/common/left.jsp"%>
		<div class="right r">

			<div class="nametop">
				<em>笔名：${readerAuthor.authorNickname}<span class="emspan">ID:${readerAuthor.authorId}</span></em>
				<b>今天是<span id="clock"></span>，本月您已更新0天，共计更新0字
				</b>
				<div>
					<a><img src="<%=path%>/image/calendar.png"></a>
				</div>
			</div>

			<div class="zbbt">
				<b>写作中的作品</b><span>共计${recordCount}本</span>
			</div>

			<ul class="zblist">
				<c:forEach items="${bookList}" var="book" varStatus="status">
					<li><b><c:if test="${book.bookImageType==0}">
								<img src="${sourceUrl}/${book.bookImage}" />
							</c:if> <c:if test="${book.bookImageType==1}">
								<img src="${book.bookImage}" />
							</c:if></b>
						<dl>
							<dd class="zbdd1">${book.bookName}</dd>
							<dd class="zbdd2">最新章节：${book.bookLastChapter}</dd>
							<dd class="zbdd3">
								更新时间：
								<fmt:formatDate value="${book.bookLatestDate}"
									pattern="yyyy-MM-dd HH:mm:ss" />
							</dd>
							<dd class="zbdd3">已撰写字数：${book.bookWords}字</dd>
						</dl> <a class="zblista"
						href="<%=path%>/chapter/add?bookId=${book.bookId}"><img
							src="<%=path%>/image/upchapter.png" /></a> <a class="zblista"
						onclick="uploadBookCover('${book.bookId}');return false;"><img
							src="<%=path%>/image/mcover.png" /></a></li>
				</c:forEach>
				<li><page:page pageSize="${page.limit}" pageNo="${page.pageNo}"
						url="${path}/author/index" recordCount="${recordCount}" /></li>
			</ul>
		</div>
	</div>
	<!--上传封面-->
	<div class="upcover">
		<div class="upcovers">
			上传封面<s><img src="<%=path%>/image/close.png" /></s>
		</div>

		<div class="upcover1">
			<form name="form" id="form" action="${path}/book/uploadCover"
				enctype="multipart/form-data" method="post">
				<input type="hidden" name="bookId" id="bookId" value="0" /> <input
					type="hidden" name="lastPageNo" id="lastPageNo"
					value="${page.pageNo}" /> <input type="hidden" name="opType"
					id="opType" value="index" />
				<div class="upcovern">
					<div class="upimgl">选择上传封面文件：</div>
					<span>浏 览<input type="file" name="fileContent"
						accept="image/*" /></span>
				</div>
				<input id="ajaxSubmit" type="submit" value="上传" />
			</form>

			<div class="upcoverx">
				<span>说明</span> 1、只能上传规格为250X335像素小于30KB的JPG图片。<br />
				2、禁止上传任何有色情、暴力、血腥、恐怖、广告宣传或者不适合公众欣赏的封面。<br />
				3、请使用原创图片，不得使用他人有版权的图片。<br /> 4、学而阅读有权将封面推荐给合作伙伴或做其他宣传使用，不另行通知。<br />
			</div>
		</div>

		<div class="upcover2">
			<div class="upsuccess">
				<b>上传成功！上传作品封面后，管理员将在1个工作日内审核完毕。</b> <a>关 闭</a>
			</div>
		</div>

	</div>
	<!--上传封面-->
</body>
</html>